#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include "52.h"
#include "52.h"

#define NAME 0

//条件编译
int main()
{
    //1. if后面只能跟着整型常量
    #if 1
        printf("111111\n");  
    #else
        printf("000000\n");
    #endif

    //2.
    #if 0
        printf("111111\n");
    #elif 0
        printf("222222\n");   
    #elif 1
        printf("3333333\n");    
    #else
        printf("000000\n");
    #endif

    //3.ifdef 宏名   判断一个宏名是否被定义，定义了就是真
    
    #ifdef NAME
        printf("111111\n");
    #else
        printf("222222\n");
    #endif

    //4. ifndef    如果不存在define的宏名，就为真
    #ifndef NAME
        printf("111111\n");
    #else
        printf("222222\n");
    #endif

    #ifndef AGE
        printf("111111\n");
    #else
        printf("222222\n");
    #endif


    struct MyStruct ms;
    ms.num=100;
    printf("%d\n",ms.num);

    //system("pause");
	return 0;
} 